Component({
  properties: {
    // define headerText property to use in custom component
    data: {
      type: Object,

    },
  },
  methods:{
    previewImage: function (e) {
      let current = e.currentTarget.dataset.src;
      let arr = e.currentTarget.dataset. images
      tt.previewImage({
        current: current,
        // 当前显示图片的http链接  
        urls: arr// 需要预览的图片http链接列表  

      });
    },
  }
});